package com.mycloud.service.impl;

import com.mycloud.dataobject.UserInfo;
import com.mycloud.repository.UserRepository;
import com.mycloud.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by PC on 2019/1/19.
 */
@Service
@Slf4j
public class UserServiceImpl implements UserService {

    @Autowired
    private UserRepository userRepository;

    @Override
    public UserInfo findByOpenId(String openId) {
        return userRepository.findByOpenid(openId);
    }
}
